<?php


namespace app\api\model;


use app\common\model\CourseList;
use think\Model;

class CourseVideoModel extends Model
{
    protected $pk = 'id';
    protected $table = 'bk_course_video';
    protected $resultSetType = '';

    /**
     * 根据章节menu_id获取到video_path
     */
    public static function get_video_path($video_id) {
        return CourseVideoModel::get(['menu_id' => $video_id]); // 需要优化成只读取video_path字段
    }
}